$(document).ready(function(){
	$('.tbl tr:even').addClass("tr-even");
	$('.tbl tr:odd').addClass("tr-odd");
	$('.tbl tr:first-child').addClass("tr-first");
	$('.tbl tr:last-child').addClass("tr-last");
	$('ul li:first-child').addClass("li-first");
	$('ul li:last-child').addClass("li-last");

	$("marquee").hover(function () {
		this.stop();
	}, function () {
		this.start();
	});

	$('#slider').nivoSlider({
		effect: 'random',
		directionNav: false,
		pauseOnHover: true,
		controlNav: true,
		controlNavThumbs: false
	});

	$(".service-c").jMyCarousel({
		visible: '100%',
		auto : true,
		btnNext: $("#service"),
		evtStart: 'mouseout',
		evtStop: 'mouseover'
	});

	$('#barousel_thslide').barousel({
		navWrapper: '#thslide_barousel_nav .thslide_list',
		manualCarousel: 1,
		navType: 3
	});

	$('#thslide_barousel_nav').thslide({
		itemOffset: 93
	});

});
function mycarousel_initCallback(carousel)
{
	carousel.clip.hover(function() {
		carousel.stopAuto();
	}, function() {
		carousel.startAuto();
	});
};

function toggle_bb(){
	$('#bottombar').toggle();
}